
<table style="margin-top:10px">
	<tr>
		<th width="40">序号</th>
		 <th>配件或项目</th>
		 <th>数量</th>
		 <th>单位</th>
		 <th>单价</th>
		 <th>小计</th>
		 <th>备注</th>   
   	</tr>
   	{[foreach name=outer key=key item=item from=$result.item]}
   	{[assign var="no" value="`$key+1`"]}
   	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
	     <td>{[$no]}</td>
		 <td>{[$item.name]}</td>
		 <td>{[$item.quantity]}</td>
		 <td>{[$item.unit]}</td>
		 <td>{[$item.price]}</td>
	     <td>{[$item.amount]}</td>
	     <td id="print_content_{[$item.id]}">{[$item.content]}</td>  
   	</tr>
   	{[/foreach]}
   	<tr onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
	     <td colspan="5" align="right">合计：</td>
	     <td width="80" align="center">{[$result.amount]}</td> 
	     <td></td> 
   	</tr>
</table>